import http from "@/utils/https";
export const getUserAPI = (user, passwd) => {
  return http({
    url: `user?name=${user}&passwd=${passwd}`,
    method: "get",
  });
};
export const postUserAPI = (user, passwd) => {
  return http({
    url: "user",
    method: "POST",
    data: {
      name: user,
      passwd: passwd,
    },
  });
};
export const patchUserExpertAPI = (id, exId) => {
  return http({
    url: `message/${exId}`,
    method: "patch",
    data: {
      myId: [id],
    },
  });
};
export const delUserExpertAPI = (id) => {
  console.log(id);

  return http({
    url: `message/${id}`,
    method: "patch",
    data: {
      myId: [],
    },
  });
};
